#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class base
{
private:
	int x;
public:
	void set_x(int n)
	{
		x = n;
	}
	void print()
	{
		cout << "x=" << x << endl;
	}
};
class derived :private base
{
private:
	int y;
public:
	void set_xy(int n, int m)
	{
		set_x(n);
		y = m;
	}
	void print1()
	{
		print();
		cout << "y=" << y << endl;
	}
};
int main()
{
	derived obj;
	obj.set_xy(10, 20);
	obj.print1();
	return 0;
}
